:root {
    /* 深色主题变量 */
    --primary-color-dark: #7F5AF0;
    --primary-hover-dark: #6B4AE0;
    --bg-color-dark: #16161A;
    --surface-color-dark: #242629;
    --text-color-dark: #FFFFFE;
    --secondary-text-dark: #94A1B2;
    --border-color-dark: #383A3F;
    --error-color-dark: #FF6B6B;

    /* 浅色主题变量 */
    --primary-color-light: #6246EA;
    --primary-hover-light: #5438D2;
    --bg-color-light: #FFFFFE;
    --surface-color-light: #F2F4F6;
    --text-color-light: #2B2C34;
    --secondary-text-light: #6B6F76;
    --border-color-light: #D1D5DB;
    --error-color-light: #EF4444;

    /* 默认使用深色主题 */
    --primary-color: var(--primary-color-dark);
    --primary-hover: var(--primary-hover-dark);
    --bg-color: var(--bg-color-dark);
    --surface-color: var(--surface-color-dark);
    --text-color: var(--text-color-dark);
    --secondary-text: var(--secondary-text-dark);
    --border-color: var(--border-color-dark);
    --error-color: var(--error-color-dark);
}

/* 浅色主题类 */
:root[data-theme="light"] {
    --primary-color: var(--primary-color-light);
    --primary-hover: var(--primary-hover-light);
    --bg-color: var(--bg-color-light);
    --surface-color: var(--surface-color-light);
    --text-color: var(--text-color-light);
    --secondary-text: var(--secondary-text-light);
    --border-color: var(--border-color-light);
    --error-color: var(--error-color-light);
}

/* 主题切换按钮样式 */
.theme-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-switcher button {
    background: var(--surface-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switcher button:hover {
    border-color: var(--primary-color);
}

.theme-switcher button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.box-main {
    width: 100%;
    max-width: 600px;
    background: var(--surface-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease-out;
}

h1 {
    color: var(--text-color);
    text-align: left;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-left: 16px;
}

.form-group {
    margin-bottom: 30px;
    width: 100%;
}

label {
    display: block;
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
    padding-left: 16px;
}

select, input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A1B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.2);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.pure-button-primary {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    box-sizing: border-box;
}

.pure-button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.my-input {
    position: relative;
    width: 100%;
}

.my-input input {
    width: 100%;
}

.my-input-tips-wrap {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--error-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.my-input-tips-wrap.hide {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.my-input-arrow {
    position: absolute;
    top: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--error-color);
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.footer:hover {
    opacity: 1;
}

.footer p {
    margin: 0;
    padding: 0;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-switcher select {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 8px 32px 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: auto;
    cursor: pointer;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A1B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.language-switcher select:hover {
    border-color: var(--primary-color);
}

.language-switcher select option {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 8px;
}

.content {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(127, 90, 240, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(127, 90, 240, 0.4);
    }
}

@media (max-width: 600px) {
    .box-main {
        padding: 30px 20px;
        border-radius: 16px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .theme-switcher,
    .language-switcher {
        position: static;
        margin-bottom: 20px;
    }

    .box-main {
        margin-top: 80px;
    }
}

/* 帮助按钮样式 */
.help-button {
    position: fixed;
    bottom: 150px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.help-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.help-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    .help-button {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .help-icon {
        width: 20px;
        height: 20px;
    }
}

/* 分享按钮样式 */
.share-buttons {
    position: fixed;
    bottom: 210px;
    right: 20px;
    z-index: 100; 
    width: 48px; 
    height: auto;
    transition: all 0.3s ease;
}

.share-icons {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--surface-color);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.share-icon svg {
    width: 20px;
    height: 20px;
}

.share-icon:first-child svg {
    width: 22px;
    height: 22px;
}

/* 除了第一个图标外，其他都隐藏 */
.share-icon:not(:first-child) {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.share-icon:first-child {
    opacity: 1;
    transform: translateY(0);
    background: var(--primary-color);
    color: white;
}

.share-buttons:hover .share-icon {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.share-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .help-button,
    .share-buttons {
        position: fixed;
        bottom: 140px;
    }

    .help-button {
        right: 70px;
        width: 40px;
        height: 40px;
    }

    .share-buttons {
        right: 20px;
        width: auto;
        height: auto;
    }

    .share-icons {
        flex-direction: row;
        gap: 8px;
    }

    .share-icon {
        width: 36px;
        height: 36px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .share-icon:not(:first-child) {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .share-icon svg {
        width: 16px;
        height: 16px;
    }

    .share-icon:first-child svg {
        width: 18px;
        height: 18px;
    }
}

/* 添加捐赠按钮样式 */
.donate-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.donate-button:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.donate-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    .donate-button {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .donate-icon {
        width: 20px;
        height: 20px;
    }
}
